//退出功能
$('#exit').on('click', function () {
    //弹出询问层
    console.log(123);
    layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
        //移除token
        localStorage.removeItem('token');
        //跳转到登录页面
        location.href = '/admin/login.html';
        //关闭弹层
        layer.close(index);
    });


})